import { AutoIncrementId, Boolean, Code, Desc, Entity, Jsonb, PrimaryUuid, Title, Uuid } from "../utils";


@Entity({
    name: 'sys_user_message'
})
export class SysUserMessage {
    @PrimaryUuid()
    id: string;

    @AutoIncrementId()
    message_id: number;

    @Code()
    type: string;

    @Jsonb()
    body: any;

    @Code()
    to_username: string;

    @Code()
    from_username: string;

    @Boolean({ default: false })
    readed: boolean;
}